package org.naxx.security.model.impl.match;

import java.util.ArrayList;
import java.util.List;

import org.naxx.security.model.match.Match;
import org.naxx.security.model.match.MatchContainer;
import org.naxx.security.model.match.MatchParentType;

public class MatchContainerImpl implements MatchContainer {
	
	private MatchParentType matchParentType;
	private List<Match> matches;

	public MatchContainerImpl() {
		this.matches = new ArrayList<Match>();
	}

	public MatchContainerImpl(MatchParentType matchParentType, List<Match> matches) {
		this.matchParentType = matchParentType;
		this.matches = matches;
	}

	public MatchParentType getMatchParentType() {
		return this.matchParentType;
	}

	public List<Match> getMatches() {
		return this.matches;
	}

	public void setMatchParentType(MatchParentType matchParentType) {
		this.matchParentType = matchParentType;
	}

	public void addMatch(Match match) {
		this.matches.add(match);
	}
}
